package com.xuecheng.api.search;

import com.xuecheng.api.search.model.CoursePubIndexDTO;
import com.xuecheng.api.search.model.qo.QueryCoursePubModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程发布搜索服务API管理")
public interface CoursePubSearchApi {
    @ApiOperation("根据条件分页查询")
    PageVO<CoursePubIndexDTO> coursePubIndexByCondition(PageRequestParams pageParams, QueryCoursePubModel queryModel);
    @ApiOperation(value = "根据Id获得课程发布信息")
    @ApiImplicitParam(name = "coursePubId",
            value = "课程发布ID", required = true,
            dataType = "Long", paramType = "path", example = "1")
    CoursePubIndexDTO getCoursePubById(Long coursePubId);


    @ApiOperation(value = "根据Id获得课程发布信息")
    @ApiImplicitParam(name = "coursePubId",
            value = "课程发布ID", required = true,
            dataType = "Long", paramType = "path", example = "1")
    RestResponse getCoursePubById4s(Long coursePubId);
}
